package designPattern.builder;

import java.util.Arrays;
import java.util.List;

import designPattern.builder.Bobject.Media;
import designPattern.builder.Sobject.MediaItem;

public class BuildMedia {

	private static List input=Arrays.asList(new MediaItem[]{new MediaItem("item1"),
			new MediaItem("item2"),new MediaItem("item3"),new MediaItem("item4")});
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MediaDirector buildBook=new MediaDirector(new BookBuilder());
		Media book=buildBook.produceMedia(input);
		System.out.println("book:"+book);
	}
}
